package com.maxmlr.music.song.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @author max
 * @version 1.0
 * @ClassName Singer
 * @Description 
 * @Copyright Copyright (c) 2020: www.maxmlr.com.
 * @since 2020-06-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("singer")
@ApiModel(value="Singer对象", description="")
public class Singer extends Model<Singer> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 歌手姓名
     */
    @ApiModelProperty(value = "歌手姓名")
    @TableField("singer_name")
    private String singerName;

    /**
     * 性别，0 未知，1男，2女,3组合
     */
    @ApiModelProperty(value = "性别，0 未知，1男，2女,3组合")
    @TableField("type")
    private Integer type;

    /**
     * 国籍：2内地，3、港台、4日韩，5欧美
     */
    @ApiModelProperty(value = "国籍：2内地，3、港台、4日韩，5欧美")
    @TableField("nation")
    private Integer nation;

    /**
     * 头像地址对应id
     */
    @ApiModelProperty(value = "头像地址对应id")
    @TableField("head_img_id")
    private Integer headImgId;

    /**
     * 添加用户
     */
    @ApiModelProperty(value = "添加用户")
    @TableField("create_user_id")
    private Integer createUserId;

    /**
     * 修改用户
     */
    @ApiModelProperty(value = "修改用户")
    @TableField("update_user_id")
    private Integer updateUserId;

    /**
     * 添加时间
     */
    @ApiModelProperty(value = "添加时间")
    @TableField("create_time")
    private Date createTime;

    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    @TableField("update_time")
    private Date updateTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
